﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CommonMvc.Models.T
{
    public class GifCard
    {
        public int Id { get; set; }
        /// <summary>
        /// 卡卷编号?
        /// </summary>
        public string CardNo { get; set; }              
        /// <summary>
        /// 是否送出
        /// </summary>
        public int IsSend { get; set; }
        /// <summary>
        /// 是否使用
        /// </summary>
        public int IsUsed { get; set; }      
        /// <summary>
        /// 使用日期
        /// </summary>
        public DateTime? UseTime { get; set; }
        /// <summary>
        /// 拥有者 id
        /// </summary>
        public int UserId { get; set; }     
        /// <summary>
        /// 卡劵简短名称
        /// </summary>
        public string NickName { get; set; }      
        /// <summary>
        /// 关联的giftCardsLog的id
        /// </summary>
        public int LogId { get; set; }      
    }

    //批次
    public class GiftCardsLog
    {
        public int Id { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 卡劵名称
        /// </summary>
        public string GiftCardName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 添加数量
        /// </summary>
        public int AddNum { get; set; }
        /// <summary>
        /// 开始使用时间
        /// </summary>
        public DateTime UseBeginTime { get; set; }
        /// <summary>
        /// 最晚使用日期
        /// </summary>
        public DateTime UseEndTime { get; set; }
    }
}
